﻿namespace Arms.Framework.Base.Extensions
{
    using Arms.Framework.Validators;
    using System;
    using System.Collections.Generic;

    public static class IntegerExtensions
    {
        /// <summary>
        /// Converts this integer to a letter score. (ex AA)
        /// </summary>
        /// <param name="source"></param>
        /// <returns></returns>
        public static string ToLetters(this int source)
        {
            Validation.Requires<ArgumentException>(source > 0, "integer value must be greater than zero.");

            string letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
            Dictionary<int, int> letterIndex = new Dictionary<int, int>();

            for (int i = 0; i < source; i++)
            {

            }

            throw new NotImplementedException();
        }
    }
}
